#pragma once
#include "TreeCtrlItem.h"


class CGuid;
class GtdTaskEntry;
enum ItemDataType;

class TaskEntryListTreeItem : public CTreeCtrlItem 
{
public:
	TREEIREM_CONVERSION_DEF(TaskEntryListTreeItem,CTreeCtrlItem)

	static void LoadTree(CGTDTreeCtrl& ctrl);
	
	//root
	TaskEntryListTreeItem findItem(const CGuid&guid)const;
	TaskEntryListTreeItem findFirstItem(ItemDataType t)const;

	void AddTaskEntryItem(GtdTaskEntry *pEntry);
	void ResetTaskEntryItem(GtdTaskEntry* pEntry);
};
